package com.mlh.dao.impl;

import com.mlh.dao.BookDao;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

//通过注解配置bean
@Component("bookDao")
public class BookDaoImpl implements BookDao {
    private String bookName;

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }
    public String getBookName() {
        return bookName;
    }

    public BookDaoImpl(){
        System.out.println("BookDaoImpl构造器被调用");
    }

    public void save() {
        System.out.println("book dao save ...");
    }

    public void init(){
        System.out.println("init method setup");
    }

    public void destroy(){
        System.out.println("destroy method setup");
    }

}
